package cn.gcxy.javase.base;

import java.util.Scanner;

public class Demo1{
	private static Scanner consol;

	public static void main(String args[]) {
		Integer[] nums=new Integer[10];
		for(int i=0;i<=9;i++) {
			consol = new Scanner(System.in);
			System.out.println("please input any words("+i+")\n");
			try{nums[i]=Integer.parseInt(consol.nextLine());}
			catch(NumberFormatException e) {
				System.out.println("Input Error:Please input a right integer!\n");
				i--;
			}
		}
		System.out.println("-----------Out Put-------------\n");
		for(int i=9;i>=0;i--) {
			System.out.println(nums[i]+"\n");
		}
	}
}